package com.bjpowernode.crm.pojo;

import java.util.List;

public class Page {
    private Integer currentPage=1;    //当前页:给默认值：1，数据加载的时候，直接展示第一页
    private Integer rowsPerPage=10;       //每页选择展示的行数：默认值10，页面加载的时候：展示10条记录
    private Integer maxRowsPerPage =100 ;     //每页可以展示的最大行数：
    private Integer totalPages;         //总页数
    private Integer totalRows;          //总行数：总记录数
    private Integer visiblePageLinks =5;   //分页卡片数
    private List data;//每页获取的记录数据

    @Override
    public String toString() {
        return "Page{" +
                "currentPage=" + currentPage +
                ", rowsPerPage=" + rowsPerPage +
                ", maxRowsPerPage=" + maxRowsPerPage +
                ", totalPages=" + totalPages +
                ", totalRows=" + totalRows +
                ", visiblePageLinks=" + visiblePageLinks +
                ", data=" + data +
                '}';
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getRowsPerPage() {
        return rowsPerPage;
    }

    public void setRowsPerPage(Integer rowsPerPage) {
        this.rowsPerPage = rowsPerPage;
    }

    public Integer getMaxRowsPerPage() {
        return maxRowsPerPage;
    }

    public void setMaxRowsPerPage(Integer maxRowsPerPage) {
        this.maxRowsPerPage = maxRowsPerPage;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(Integer totalRows) {
        this.totalRows = totalRows;
    }

    public Integer getVisiblePageLinks() {
        return visiblePageLinks;
    }

    public void setVisiblePageLinks(Integer visiblePageLinks) {
        this.visiblePageLinks = visiblePageLinks;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }
}
